package com.design.pattern.singleton;

public class Singleton0 {
    //懒汉式，线程不安全
    private static Singleton0 instance;

    private Singleton0(){

    }

    public static Singleton0 getInstance(){
        if(instance == null){
            instance = new Singleton0();
        }
        return  instance;
    }



}
